﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Scheduler {

    class ReceiverBuffer {

        List<Object> executablesHighPriority = new List<Object>();
        List<Object> executablesLowPriority = new List<Object>();

        public void addNewPacket(object dataPacket, Priority priority) {

            if (priority == Priority.HIGH_PRIORITY) {
                executablesHighPriority.Add(dataPacket);

            } else if (priority == Priority.LOW_PRIORITY) {

                executablesLowPriority.Add(dataPacket);
            }
        }

        public String toString() {
            return "Receiver";
        }
             

    }

   
}
